home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2003 December
/
The Sunday Times - The Month 2003-12.iso
/
mac
/
The Month DEC 03
/
engine
/
modules
/
thumbs_tall.swf
/
scripts
/
DefineSprite_6
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-11-10
|
781b
|
34 lines
function init()
{
num = _name.split("_")[2];
var nd = _parent._parent.nodeData.childNodes[num];
link = nd.attributes.link;
_parent._parent.addLink(this,link);
titleFF.htmlText = nd.byName("thumbtitle").getText();
titleFF.textColor = _parent._parent.DEFAULT_COLOR;
imgToCheck = eval("_parent.mc_img_" + num);
intervalID = setInterval(checkLoad,300,this);
if(link == null)
{
activeBtn.useHandCursor = false;
}
}
function checkLoad(mc)
{
if(imgToCheck._height > 0)
{
if(!positioned)
{
positioned = true;
_parent._parent.positionElements(mc);
clearInterval(intervalID);
}
}
}
this.onUnload = function()
{
clearInterval(intervalID);
};
init();
delete init;